package com.chatper0;

public class MainTest {
    public static void main(String []args) {
        System.out.println("New world! 2023!");
        Student person = new Student();
        person.name = "Li Hua";
        person.read();
        Student person1 = new Student();
        person1.name = "Zhang San";
        person1.read();
        //对象复制
        System.out.println("person1的地址为"+ person1);
        Student person2 = null;
        System.out.println("person2的地址为"+ person2);
        person2 = person;
        System.out.println("person2的地址为"+ person2);
        person2.read();
        person.name = "Wang Wu";
        person2.read();
    }
}
